/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package routefinder.loader;

import java.io.InputStream;
import routefinder.IRoutesMap;

/**
 * Defines an extensible way of importing the graph's data to the application.
 * For example, the application could handle XML formatted files.
 *
 * @author luky
 */
public interface IDataLoader {
    /**
     * Loads the graph contents of the input into an in-memory representation of the graph.
     *
     * @param input Where the graph will be loaded from.
     * @param map Where the graph will be loaded into.
     */
    void loadIntoMemory(final InputStream input, final IRoutesMap map);

}
